package com.wyw.minio.learning.controller;

import com.wyw.minio.learning.service.MinioAdminService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2024/3/28 16:55
 * Update History:
 * Author        Time            Content
 */
@RestController
@RequestMapping("/minio")
public class MinioAdminController {
    private final MinioAdminService minioAdminService;

    public MinioAdminController(MinioAdminService minioAdminService) {
        this.minioAdminService = minioAdminService;
    }

    @GetMapping("/admin/listUser")
    public String listUsers() {
        return minioAdminService.listUsers();
    }
}
